Corrected logic with playgame