Revert "Revert "implemented a the basic game loop""

This reverts commit 66c936a51fbb8d26c27818b38b05c40b5e21c89a.