Fixed some indentations. Made a wrapper function to simulate gameplay in terminal.