use curses.wrapper
better game lost check and added options for variable rows/cols