Chess variant in Java