added logic for game integration