Continued work and error testing on getPossibleMoves