private void drawGrid(Graphics g, Tile[][] grid)
	{
		for (int i = 0; grid != null && i < grid.length; i++)
			for (int j = 0; j < grid[i].length; j++)
			{
				if (grid[i][j] != null && grid[i][j].getActive())
				{
					Tile current = grid[i][j];
					g.setColor(current.getColor());
					g.fillRect(current.getX()*32, current.getY()*32, 32, 32);
				}
			}	
	}