Update Tile.java

Added getResource method