Added Block object and simple collision detection logic.