moved some target calculating stuff to screens.js