Integrated crescent detection code

findCrescent seems to be working. It could use some testing since other
errors popped up in the program after integrating it.