Calls the good function for movement in hudMayor