entity has ability to move and jump, changing states properly. This code is fucking rubbish.