The guy was an absolute stud when it came to coding skill and even communicating but I just couldnt imagine sharing an office with him

Could you correct the punctuation please?
The guy was an absolute stud when it came to coding skill and even communicating, but I just couldn't imagine sharing an office with him.