public int opposite(int direction){
		switch(direction)
		{
		case UP:
			return DOWN;
		case DOWN:
			return UP;
		case RIGHT:
			return LEFT;
		case LEFT:
			return RIGHT;
		default:
		}
		return 0;
	}