Numerous changes

The most important changes being that using functions work now and when
you do a function, it uses the previous player’s tile from their
discard. Functions for bots isn’t yet functional though. Need to nail
down the player first