Added a star path finding + guard against clicks outside of screen