refactored code for enhanced redability
Merge branch 'master' of https://github.com/allanslim/warrior-game