Optimized your function a bit, Jasoooon

1. Swaped isEmpty Point ArrayList check to be behind !isEmpty. Iterating
guesses right 99.99% of the time if we assume to check for the non-empty
list version first, making it faster by O(n - 1).

2. Changed index loop for points ArrayList into enhanced for loop
(utilizes internal iterating for the list).

3. Made newLocation field encapsulated by the two for loops to avoid an
unneeded global state (also, no redundant "boolean newLocation = true
... newLocation = true" code).