Raycasting Example: 2d map