StateManager is usable for every entity object
example in game.js

closes #5