public void MoveGhost(){
		Random random = new Random();
		int randNumber = random.nextInt(4) + 1;
		
		int x = 0;
		int y = 0;

		switch (randNumber) {

		case 1:
			x = 0;
			y = 1;
			break;
		case 2:
			x = 1;
			y = 0;
			break;
		case 3:
			x = 0;
			y = -1;
			break;
		case 4:
			x = -1;
			y = 0;
			break;
		}
			
			if ( pacmaze[ghost.column+x][ghost.line+y] == 'D' ){
				pacmaze[ghost.column][ghost.line] = 'D';
				pacmaze[ghost.column+x][ghost.line+y] = ghost.symbol;
				ghost.MoveObject(x, y);
			}

			else if ( pacmaze[ghost.column+x][ghost.line+y] == ' ' ){
				pacmaze[ghost.column][ghost.line] = ' ';
				pacmaze[ghost.column+x][ghost.line+y] = ghost.symbol;
				ghost.MoveObject(x, y);
			}
			
	}