some rework in games function