added player input regex checking and value checking. regex is buggy.