Implement game engine v1