creating a lua script for boat management and chest detection