New code for piece and game engine.