progress on playing against, major refactor toward PEP 8