cleaned up the code and added conditions for the clients circle positioning
cleaned up the code and added conditions for the clients circle positioning