@Override
      public void paintComponent(Graphics g) {
         super.paintComponent(g);
         Graphics2D g2d = (Graphics2D) g;
         for (int a = 0; a < floor.size(); a++) {
            int xCoordinate = (floor.get(a).locX() * 50) + 5;
            int yCoordinate = (floorYdimension * 50 + 5) - (floor.get(a).locY() * 50);
            if (floor.get(a).sI.features[3] == SensorInterface.feature.OBSTICLE) {
               g2d.fillRect(xCoordinate - 2, yCoordinate, 5, 50);
            } else {
               g2d.fillRect(xCoordinate, yCoordinate, 1, 50);
            }
            if (floor.get(a).sI.features[1] == SensorInterface.feature.OBSTICLE) {
               g2d.fillRect(xCoordinate + 48, yCoordinate, 5, 50);
            } else {
               g2d.fillRect(xCoordinate + 50, yCoordinate, 1, 50);
            }
            if (floor.get(a).sI.features[2] == SensorInterface.feature.OBSTICLE) {
               g2d.fillRect(xCoordinate, yCoordinate + 48, 50, 5);
            } else {
               g2d.fillRect(xCoordinate, yCoordinate + 50, 50, 1);
            }
            if (floor.get(a).sI.features[0] == SensorInterface.feature.OBSTICLE) {
               g2d.fillRect(xCoordinate, yCoordinate - 2, 50, 5);
            } else {
               g2d.fillRect(xCoordinate, yCoordinate, 50, 1);
            }

            if (floor.get(a).sI.atChargingStation) {
               g2d.drawString("Charge", xCoordinate + 5, yCoordinate + 21);
               g2d.drawString("Station", xCoordinate + 6, yCoordinate + 35);
            }
            if (floor.get(a).isCurrentCell()) {
               g2d.fillRect(xCoordinate + 5, yCoordinate + 5, 40, 40);
            }
         }
      }