Update Compass.java

Added compass functionality