made spawn function accept decimals as well as ints for the object's position