An attempt at making a 3D game engine