Fixed a logic error in dumb player.

Would have caused an infinite loop in some conditions.