create the action function in hive.py that take some logic out of main.py.
idea is main.py takes cmd string and pass it directly to hive.
add function to determine the active player
Merge pull request #2 from toinsson/master

add action function in main.py