I think it is to with what you stress on. In the first one you want to stress on with whom you played poker, and in the second sentence it is when you played poker.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.