retract item_X stuff in Prolog
split Python into multiple files
keep safe and visited list only on prolog
don't consider forest tiles as adjacent