public static boolean isOpposite(Types.ACTIONS a1, Types.ACTIONS a2){
    	if(a1 == Types.ACTIONS.ACTION_LEFT && a2 == Types.ACTIONS.ACTION_RIGHT){
    		return true;
    	}
    	if(a2 == Types.ACTIONS.ACTION_LEFT && a1 == Types.ACTIONS.ACTION_RIGHT){
    		return true;
    	}
    	
    	if(a1 == Types.ACTIONS.ACTION_UP && a2 == Types.ACTIONS.ACTION_DOWN){
    		return true;
    	}
    	if(a2 == Types.ACTIONS.ACTION_UP && a1 == Types.ACTIONS.ACTION_DOWN){
    		return true;
    	}
    	
    	return false;
    }