Implementing Fault-tolerant Entangling Gates on the Five-qubit Code and the Color Code