check available moves in the method "move"

Added available moves check. Class GameState. Lines 141-143.