Chess implementation in Java