Revert "Revert "Basic gameloop done""

This reverts commit fcc31a26c0283194a0164f18e18fd20a5bbf5f70.