Changed the Game methods which get input states to functions.
Fixed the examples to work with the new functions from last commit.