player calculation added