Added ray-casting solution with sudhanshu but the player is flickering