refactored rotateLetter to check for block collision when rotating