bugfixes for sample game play function