Refactored to get judgeable
Added tests for testing inbound constraint