playerMain is main algo

player 2 for testing