func (m *hungerManager) SetFood(level int) {
	if level < 0 {
		level = 0
	} else if level > 20 {
		level = 20
	}
	m.mu.Lock()
	defer m.mu.Unlock()
	m.foodLevel = level
}
SetFood sets the food level of a player. The level passed must be in a range of 0-20. If the level passed
is negative, the food level will be set to 0. If the level exceeds 20, the food level will be set to 20.
package player
import (
	"sync"
)
type hungerManager struct {
	mu              sync.RWMutex
	foodLevel       int
	saturationLevel float64
	exhaustionLevel float64
	foodTick        int
}
func newHungerManager() *hungerManager {
	return &hungerManager{foodLevel: 20, saturationLevel: 5}
}
func (m *hungerManager) Food() int {
	m.mu.RLock()
	defer m.mu.RUnlock()
	return m.foodLevel
}