Fixed some stuff in the GPU.

Quite honestly i don't know what the intfire and stuff are.
Found them in http://imrannazar.com/content/files/jsgb-gpu-ctrl.jsgb.js
See rb function in GPU