Database Hosts Array Is Not Iterable Javascript Snake World