made snake a proper class and made an AIPlayer