Added distance check in engine. Closes #22.
Fixed trailing whitespace in engine.cpp.