Flappy Bird like score counting & code refactoring