Refactored the line class
added compass on the gui