Added the base of the player with its events and reduced the requirements on the lexer and parser.