A Java implementation of TurnZ