@Override
					public void mouseUp(final MouseEvent eventClickUp) {
						int differenceX = getMouseDownX() - eventClickUp.x;
						int differenceY = getMouseDownY() - eventClickUp.y;
						boolean up = (-50 <= differenceX) && (differenceX <= 50) && (40 <= differenceY) && (differenceY <= 160 );
						boolean down = (-50 <= differenceX) && (differenceX <= 50) && (-160 <= differenceY) && (differenceY <= -60);
						boolean right = (-190 <= differenceX) && (differenceX <= -130) && (-80 <= differenceY) && (differenceY <= 80);
						boolean left = (50 <= differenceX) && (differenceX <= 190) && (-90 <= differenceY) && (differenceY <= 90);
						
						if(up){
							//up
							userCommand = 1;
							setChanged();
							notifyObservers();
						}
						else if(down){
							//down
							userCommand = 2;
							setChanged();
							notifyObservers();
						}
						
						else if(right){
							//right
							userCommand = 3;
							setChanged();
							notifyObservers();
						}
						else if(left){
							//left
							userCommand = 4;
							setChanged();
							notifyObservers();
						}
					}