added corners logic, and made readings only be taken from 90-180 degrees