Renamed figure to piece, some probably quickly replaced code for the game setup