Separated evolution and bruteforce into two files.

snake.rb now contains a class which provides the energy functions
using the given base string.