main loop
better paramas
docs
game logic in main
libary init
switched to state controler
switch_state and clean up func
exit state
handle alt-f4