The code is running just fine, but at the end it is hitting a waitKey(0). which should wait for me to exit the program via the X. But, it is just automatically reading any click I do on the window at all and moving past the waitKey command and returning 0.
Like i mentioned before the code is fine, it runs perfectly on the Rpi.