Only show bet button when it is players turn

Refactor some code