Merge pull request #1 from jmiramant/js_board_logic

Js board logic
added passwords
helper methods
Fixed merge conflicts mostly in game.rb model