Code adjusted to implement Chess