Game engine implementation