Replaced if-else-if-else-if with switch for determining piece moves in Piece