Short commit to help find bugs

Added more console.logs. Found strange bug where i is always 6.