Refactoring Droidpoker.java