double buffering problem with DOS