Refactored moonsurface such that face detection can be computed more efficiently.