entity spawn now working as intended