void rotateTile() { //update the rotation of the quadmodel, update out1 and out2, update the map that holds the key value for each inward direction model.rotate(); out1 = (out1 + 3) % 4; out2 = (out2 + 3) % 4; populateOutward(); }