Code for Brick Battle's client