working on game loop and computer logic