My attempt to implement chess