Simple Raycaster in C++