Implemented basic input and input validation for 5x5 game