implemented single player stuff for demo