Added the gamestate logic, shaders and meshes.
Gets segment fault now though.