Game logic: collision detection counter for walls that are on