@Override
					public void mouseUp(MouseEvent e) {
						if(board.isMouseMoved()){
							int x_move = board.getxBm()-board.getX();
							int y_move = board.getyBm()-board.getY();
							int mvx = x_move;
							int mvy = y_move;
							boolean up = true;
							boolean right = false;
							
							if((x_move) < 0 ){
								right = true;
								mvx = x_move*-1;
							}
							if(y_move < 0){
								up = false;
								mvy = y_move*-1;
							}
							if(mvx>board.getMx() && mvy>board.getMy() ){
								if (up == true) {
									if(right == true){
										userCommand = 5;
										setChanged();
										notifyObservers();
									}else{
										userCommand = 6;
										setChanged();
										notifyObservers();
									}
								} else {
									if(right){
										userCommand = 7;
										setChanged();
										notifyObservers();
									}else{
										userCommand = 8;
										setChanged();
										notifyObservers();
									}
								}
							}else if(mvx>board.getMx()){
								if(right){
									userCommand = 3;
									setChanged();
									notifyObservers();
								}else{
									userCommand = 4;
									setChanged();
									notifyObservers();
								}
							}else{
								if(up == true){
									userCommand = 1;
									setChanged();
									notifyObservers();
								}else{
									userCommand = 2;
									setChanged();
									notifyObservers();
								}
							}
						}
					}