Add checking if the brick is destroyed
Class work