Fixed bug where player kept attacking while falling