Add Block class and collision detection