Code optimization, began work on block collision