overrode equals() and hashCode() on Tile class

Now two tile objects can be compared using the equals() method.