public void buildWorld(Graphics g) {

        g.setColor(new Color(250, 240, 170));
        g.fillRect(0, 0, this.getWidth(), this.getHeight());

        ArrayList world = new ArrayList();
        world.addAll(walls);
        world.addAll(areas);
        world.addAll(gems);
        world.add(Home);
        world.add(karel);

        
        for (int i = 0; i < areas.size(); i++)
        {
            Entity item = (Entity) areas.get(i);
            g.drawImage(item.getImage(), item.GetX(), item.GetY(), this);
        }

        for (int i = 0; i < world.size(); i++) {

            Entity item = (Entity) world.get(i);

            if ((item instanceof Player)|| (item instanceof Gem) || (item instanceof home)) 
            {
                g.drawImage(item.getImage(), item.GetX(), item.GetY(), this);
            } 
            else if(item instanceof Wall) 
            {
                g.drawImage(item.getImage(), item.GetX(), item.GetY(), this);
            }
            
    /*        if (completed) {
                g.setColor(new Color(0, 0, 0));
                g.drawString("Completed", 25, 20);
            }
*/
        }
    }