EDIT: working pathing and losing
EDIT: Fixed and merged