Robot in a maze | JS project