Implementing a simple Sheeps and Rams game