Beggining of a state machine. Further physics improvements. Jumping is now ALIVE