bit checker in gs loop was an 8bit int instead of 16bit. Corrected that oversight