now following green line ToDo fix behavior when reching edges