fixed inCircle() and flip()