Add makefile library and fix chosing who will play next