added InputHandler class.
gamelogic implementation is now finished.