added cmake support
- moved types to their own file
- fixed bug in switchpos()
- removed some unnecessary code in isempty()
- added wasd controls
- added running flag
- removed dead code
- swapped y and x to conform to convention
- fixed reversed w and s