put code to identify place clicked moved to a separate method
put code to identify place clicked moved to a separate method