fixed an issue where detonating a bomb on the top and right edges of the map would result in a crash