Chess made in java code