Collective Path Planning By Robots On A Grid