Refactored try_move
The rat now follows the player, using A* path finding.