Start writing gameplay loop code