initial code for collision map