public void spawnEnemy()
	{
		int x = random.nextInt(width);
		int y = random.nextInt(height);
		if(tiles[x][y].isObstacle())
		{
			spawnEnemy();
			return;
		}
		Enemy e = new Enemy(x * Texture.tilesize,	y * Texture.tilesize, 0, 0);
		e.setPath(graph.astar(graph.getNodeID(x, y), graph.getNodeID(getPlayerTilePosX(), getPlayerTilePosY())));
		enemies.add(e);
	}