cleaned up some more stuff; still need to think about neighbor calculations and when page flipping happens