Java code for last years robot