Move finding stars into its own function
Make functions in Stars.java public so tests can access them
Move writing images to own function