Fixed an error in getPossibleMoves where two positions were incorrectly returned if the row of the position was 4