made full game loop, still doesn't work