my implementation of some console games