Guard logic in games