Reorganize of files and improved textinput

reorganized files for better structure and improved the code when
entering the player initials.