Working input system

Also, added chipmunk files and edited CMakeLists.txt to compile it.