Main game loop and graphics