public void paintComponent(Graphics g){
		//drawing the tiles
		g.setColor(Color.BLACK);
		for(int i = 0; i < 24; i++){
			for(int j = 0; j < 24; j++){
				g.drawRect((i*45)+50, (j*45)+50, 45, 45);

			}
		}

		//drawing the character
		g.setColor(Color.RED);
		g.drawOval(player.getxPos(), player.getyPos(), 24, 24);
		//dir
		/*Directions
		 *1 = right
		 *2 = up
		 *3 = left
		 *4 = down */
		if(player.getDir() == 1){
			g.drawRect(player.getxPos()+9, player.getyPos()+9, 20, 2);
		}else if(player.getDir() == 2){
			g.drawRect(player.getxPos()+9, player.getyPos()-9, 2, 20);
		}else if(player.getDir() == 3){
			g.drawRect(player.getxPos()-9, player.getyPos()+9, 20, 2);
		}else if(player.getDir() == 4){
			g.drawRect(player.getxPos()+9, player.getyPos()+9, 2, 20);

		}

		g.setColor(Color.BLACK);
		
		for(int i = 0; i < stages.get(0).getEntities().size(); i++){
			g.drawOval(stages.get(0).getEntities().get(i).getxPos(), stages.get(0).getEntities().get(i).getyPos(), 24, 24);
		}
		System.out.println(stages.get(0).getEntities().get(0).getxPos());
		if(player.isHasMoved()){
			moveEntities();
			player.setHasMoved(false);
		}
		repaint();
	}