improving and debugging your lua script for player cultivation system