code refactoring
Merge branch 'master' of https://github.com/devpony/3dsnake