Massive rewirte and start building it properly like a game

Signed-off-by: deanevans <dean.mark.evans@gmail.com>