Fixed ghost entity

quadTree insertion function done