Removed do-while loop from getPlayernameView