create new collision check method for brick class