New algorithm

New player code