Added cost calculation to maze, modified Sprite class for improved accuracy