Added validation to players' input