Added raycasting for block detection and picking.