python implementations of basic games