Separates Functions from game.rb 

Tidying up by splitting into multiple files