Is there any particular significance associated with these types of grayscale tiles that requires this logic?  I'm just asking for clarification.