More work on main game loop and line clearing.