Nick: Added ace determining functionality