Added for loops for removing un visible points and added clock and fixed
shortest path
Added a checking for getPointById