pub fn apply_hover(state: &mut State)
Determines the hovered entity based on the mouse cursor position