Move neighbors function from Path/Internal to Coords
Use neighbors function in Command
Apply some hlint suggestions