move elo to lib, fix #18