Code cleaning (3). Divided large functions into smaller, more structuralized functions.
Merge branch 'master' of https://github.com/boskee/Minecraft