finish all gameplay function