Move some from ideas

Add world struct
Add a few function declarations