math that makes obstacles close to target, modulize math and init, init client with server data