Fixed available move function