fixed rakefile to draw image with states from game statemachine
little bit of tests
added user states