change some global variables to local variables to avoid conflicts between game modes. Call individual view render() inside app render()