Added constants to globals.h and tweaked pathfinding