@Override
    public void paint(Graphics g) {
        super.paint(g);
        // tlo
        g.drawImage(constantElementsImage, 0, 0, this);
        g.drawImage(markersImage, 0, 0, this);
	// wyluskiwanie elementow zmiennych
	ChangingEnvironmentView environmentView = environment.getChangingEnvironmentView();
        // elementy
        for (RobotView robotView : environmentView.getRobotViews()) {
            g.drawImage(images.get("robot").getImage(), robotView.getLocation().getX() * ElementImage.ELEMENT_SIZE, robotView.getLocation().getY() * ElementImage.ELEMENT_SIZE, null);
        }
        for (StudentView studentView : environmentView.getStudentViews()) {
            switch (studentView.getStudentType()) {
                case TYPE1:
                    g.drawImage(images.get("student1").getImage(), studentView.getLocation().getX() * ElementImage.ELEMENT_SIZE, studentView.getLocation().getY() * ElementImage.ELEMENT_SIZE, null);
                    break;
                case TYPE2:
                    g.drawImage(images.get("student2").getImage(), studentView.getLocation().getX() * ElementImage.ELEMENT_SIZE, studentView.getLocation().getY() * ElementImage.ELEMENT_SIZE, null);
                    break;
                case TYPE3:
                    g.drawImage(images.get("student3").getImage(), studentView.getLocation().getX() * ElementImage.ELEMENT_SIZE, studentView.getLocation().getY() * ElementImage.ELEMENT_SIZE, null);
                    break;
                case TYPE4:
                    g.drawImage(images.get("student4").getImage(), studentView.getLocation().getX() * ElementImage.ELEMENT_SIZE, studentView.getLocation().getY() * ElementImage.ELEMENT_SIZE, null);
                    break;
                case TYPE5:
                    g.drawImage(images.get("student5").getImage(), studentView.getLocation().getX() * ElementImage.ELEMENT_SIZE, studentView.getLocation().getY() * ElementImage.ELEMENT_SIZE, null);
                    break;
                case TYPE6:
                    g.drawImage(images.get("student6").getImage(), studentView.getLocation().getX() * ElementImage.ELEMENT_SIZE, studentView.getLocation().getY() * ElementImage.ELEMENT_SIZE, null);
                    break;
                default:
                    g.drawImage(images.get("student7").getImage(), studentView.getLocation().getX() * ElementImage.ELEMENT_SIZE, studentView.getLocation().getY() * ElementImage.ELEMENT_SIZE, null);
                    break;

            }

        }
    }