Improved game functions + 4 sample algorithms