Started implementing functions and player logging.