Add function to check for available move.