2c solved. Still code is buggy yet got lucky.