game base with states