Creating a multiplatform gaming engine