Adjusted depth first search to use grid class

Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>
Removed unecessary file

Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>