Worked on computeNextRotation() in Piece.java