The isAligned() method was unnecessary-should be done with positions.