4.27

Added in the three for loops to check for all sides.