architecture from previous game

Alot of the functions are still relevant so i thought it would be better
to leave the whole thing intact.