renamed move to check_move