Add some function for game