Chess game sample code