fixed mario movement logic