Chess in CLI implemented in java