Added allValidMoves() method