python implementation of the classic card game war