changed the way corners were referenced to make it shorter and more readable