fix random game bug