made main gamecode