Better handling of changing player states.
Merge branch 'master' of https://github.com/10DaysLeftToLive/TimeWhaleEngine