/* Load the map. This is called in the main class upon game start */
public void load(File loadFile) {
try {
SAXBuilder builder = new SAXBuilder();
Document document = builder.build(loadFile);
Element root = document.getRootElement();
for (Element tile : root.getChildren()) {
int x = (int) Double.parseDouble(tile.getAttributeValue("x"));
int y = (int) Double.parseDouble(tile.getAttributeValue("y"));
tiles[x][y] = new Tile(TileType.valueOf(tile.getAttributeValue("type")), x, y, 32, 32);