a tweaked version of dumb player (fix a little bug)