calculation finally works, map is waay more interesting now