Support for multiple ships

Added Hashmap for supporting multiple Ships.
Now saving direction of ships.