Cleanups and added comments
Extend check_unit_left to vertical and horizontal lines