added CrazyStraightTrapAvoider
reduced duplicated code
reduced duplicated code