Nearly Implement getValidMoves