Mars rovers implementation with java