@Override
	public void mousePressed(MouseEvent e) 
	{
		cellWidth = view.getWidth() / view.getBoardSize();
		cellHeight = view.getHeight() / view.getBoardSize();
		
		pressedX = e.getX() / cellWidth;
		pressedY = e.getY() / cellHeight;
		
		if(pressedY == 0)
		{
			pressedY = 7;
		}
		else if(pressedY == 1)
		{
			pressedY = 6;
		}
		else if(pressedY == 2)
		{
			pressedY = 5;
		}
		else if(pressedY == 3)
		{
			pressedY = 4;
		}
		else if(pressedY == 4)
		{
			pressedY = 3;
		}
		else if(pressedY == 5)
		{
			pressedY = 2;
		}
		else if(pressedY == 6)
		{
			pressedY = 1;
		}
		else if(pressedY == 7)
		{
			pressedY = 0;
		}
		
		Piece piece = controller.getPieceFromBoard(pressedX, pressedY);
		Position piecePosition = new Position(pressedX, pressedY);
		
		view.getPossibleMovesToDraw(piece, piecePosition);
		
		view.repaint();
	}