@@ -0,0 +1,1363 @@
+package com.alasershark.dragon;%0A%0A/**%0A * Created with IntelliJ IDEA.%0A * User: 0605132364%0A * Date: 8/22/13%0A * Time: 9:40 AM%0A * To change this template use File %7C Settings %7C File Templates.%0A */%0Apublic class Coordinate %7B%0A%0A    public long x,y;%0A    public boolean up,down,left,right;%0A%0A    public Coordinate(long x, long y)%7B%0A        this.x = x;%0A        this.y = y;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object o)%7B%0A        if(!(o instanceof Coordinate)) return false;%0A        Coordinate c = (Coordinate) o;%0A        if(c.x == this.x && c.y == this.y) return true;%0A        return false;%0A    %7D%0A%0A    public Coordinate rotate(Coordinate c) throws NullPointerException%7B%0A//        System.out.println(%22Rotating a new point.%22);%0A//        System.out.println(%22Coordinate: %22 + this.x + %22 %22 + this.y);%0A        Coordinate relative = new Coordinate(this.x - c.x, this.y - c.y);%0A        Coordinate relativeAnswer = new Coordinate(relative.y, -relative.x);%0A        Coordinate answer = new Coordinate(relative.y + c.x, -relative.x + c.y);%0A//        System.out.println(%22Center: %22 + c.x + %22 %22 + c.y);%0A//        System.out.println(%22Relative to base: %22 + relative.x + %22 %22 + relative.y);%0A//        System.out.println(%22Relative answer: %22 + relativeAnswer.x + %22 %22 + relativeAnswer.y);%0A//        System.out.println(%22Answer: %22 + answer.x + %22 %22 + answer.y);%0A        return answer;%0A    %7D%0A%0A%7D%0A

Create Coordinate.java