JAVA project for controlling a remote motor