changed event handling to be smoother, got rid of global clock
game changes
fixed some math
added clock to gameobjectmanager
changed input type