Refactoring is a bitch

Separated engine and game code mostly, slightly broken but i need
working levels to test it.